package com.webapp.model;

import java.sql.Date;

public class Post{
	
	private int postId;
	private Date date;
	private String content;
	private int commentCount;
	private int circle;
	private int author;
	
	public Post(int id, Date currentDate, String textContent){
		postId = id;
		date = currentDate;
		content = textContent;
		commentCount = 0;
	}
	
	public int getPostId(){return this.postId;}
	public Date getDate(){return this.date;}
	public String getContent(){return this.content;}
	public int getCommentCount(){return this.commentCount;}
	public int getCircle(){return this.circle;}
	public int getAuthor(){return this.author;}
	
	public void setPostId(int newId){this.postId = newId;}
	public void setDate(Date newDate){this.date = newDate;}
	public void setContent(String newContent){this.content = newContent;}
	public void setCommentCount(int count){this.commentCount = count;}
	public void setCircle(int newCircle){this.circle = newCircle;}
	public void setAuthor(int newAuthor){this.author = newAuthor;}
	
	public void addNewComment(){commentCount++;}
	public void removeComment(){commentCount--;}
	

}
